<script type="text/javascript">
$(document).ready(function(){
		$('#salelog_demo').find('.demo').ajaxContent({
			event:'click', //mouseover
			loaderType:"img",
			loadingMsg:"__SHOP_DEFAULT__/images/transparent.gif",
			target:'#salelog_demo'
		});

});
</script>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mt10">
  <thead>
    <tr>
      <th class="w200">买家</th>
      <th class="w100">购买价</th>
      <th class="w100">优惠活动</th>
      <th class="">购买数量</th>
      <th class="w200">购买时间</th>
    </tr>
  </thead>
  <?php if(!empty($sales) && is_array($sales)){?>
  <tbody>
    <?php foreach($sales as $key=>$sale){?>
    <tr>
      <td><a href="{:url('member/Snshome/index',array('mid'=>$sale['buyer_id']))}" target="_blank" data-param="{'id':<?php echo $sale['buyer_id'];?>}" nctype="mcard"><?php echo $sale['buyer_name'];?></a></td>
      <td><em class="price"><i style="color:red;"><?php echo '￥'.ncPriceFormat($sale['goods_price']);?></i></em></td>
      <td><?php echo (isset($sale['goods_type']) ? $order_type[$sale['goods_type']] : $order_vr_type[$sale['order_promotion_type']]);?></td>
      <td><?php echo $sale['goods_num'];?></td>
      <td><time><?php echo date('Y-m-d H:i:s', $sale['add_time']);?></time></td>
    </tr>
    <?php }?>
  </tbody>
  <tfoot>
    <tr>
      <td colspan="10" class="tr" ><div class="pagination"> <?php echo $show_page;?> </div></td>
    </tr>
  </tfoot>
  <?php }else{?>
  <tbody>
    <tr>
      <td colspan="10" class="ncs-norecord">没有符合条件的记录</td>
    </tr>
  </tbody>
  <?php }?>
</table>
